using FreeSql.DataAnnotations;
using System;

namespace Enter.Admin.Entities
{
    public class Attachment
    {
        [Column(IsIdentity = true)]
        public long Id { get; set; }
        // 0是查询下载文件，1是附件
        public int ObjectType { get; set; }
        public long ObjectId { get; set; }
        public bool IsTemp { get; set; }
        public int CatalogType { get; set; }
        public string Catalog { get; set; } = string.Empty;
        public string Name { get; set; } = string.Empty;
        public string PathName { get; set; } = string.Empty;
        public string Extension { get; set; } = string.Empty;
        public long FileSize { get; set; }
        public string FileMD5 { get; set; } = string.Empty;
        public bool IsSync { get; set; }        
        public long CreateUserId { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public bool IsDeleted { get; set; }
    }
}
